package com.miao.FeignClient;

import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.multipart.MultipartFile;

//发生熔断，降级进入这里处理
@Slf4j
public class fallbackFactoryOfMeida implements FallbackFactory<MediaServiceClient> {
    @Override
    public MediaServiceClient create(Throwable throwable) {
        return new MediaServiceClient() {
            @Override
            public String fuck(MultipartFile multipartFile, String objectname) throws Exception {
                log.error("页面静态化熔断降级！");
                return null;
            }
        };

    }
}
